package HttpUtils;

import android.content.Context;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/2/17.
 */
public class HttpOrderRequest extends HttpBodyBase{
    public HttpOrderRequest(Context context,int type) {
        super(context);
        switch (type){
            case 0:
                //预约车位
                setAction("/index.php/Home/Order/create_order");
                break;
            case 1:
                setAction("/index.php/Home/Order/create_order_month");
                break;
        }
    }

    /**
     *
     * @param car_park_id  车库号
     * @param car_plate_number 车牌号
     * @param end_at    结束时间
     */
    private void order(long car_park_id, long car_plate_number,String end_at){
        params.put("car_park_id",car_park_id);
        params.put("car_plate_number",car_plate_number);
        params.put("end_at",end_at);

    }


    private void orderMonth(long car_park_id, long car_plate_number,String start_at,String end_at){
        params.put("car_park_id",car_park_id);
        params.put("car_plate_number",car_plate_number);
        params.put("end_at",end_at);
        params.put("start_at",start_at);
    }
}
